def ant = new AntBuilder().sequential {
    taskdef name: "groovyc", classname: "org.codehaus.groovy.ant.Groovyc"
    def tools_jar = 'C:/usr/lib/Java/jdk1.6.0_11/lib/tools.jar'
    groovyc srcdir: "src/main/groovy", destdir: "bin-groovy", {
        classpath {
        	pathelement location : "${tools_jar}"
            fileset dir: "war/WEB-INF/lib", {
                include name: "*.jar"
            }
        	fileset dir: "lib", {
        		include name: "*.jar"
        	}
        }
        javac source: "1.6", target: "1.6", debug: "on"
    }
	jar (basedir : 'bin-groovy', destfile : 'war/client.jar')
}